package com.example.kill.dao;

import com.example.kill.pojo.KillGoods;
import com.example.kill.pojo.KillGoodsExample;
import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
@Mapper
public interface KillGoodsMapper {
    int countByExample(KillGoodsExample example);

    int deleteByExample(KillGoodsExample example);

    int deleteByPrimaryKey(Long id);

    int insert(KillGoods record);

    int insertSelective(KillGoods record);

    List<KillGoods> selectByExample(KillGoodsExample example);

    KillGoods selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") KillGoods record, @Param("example") KillGoodsExample example);

    int updateByExample(@Param("record") KillGoods record, @Param("example") KillGoodsExample example);

    int updateByPrimaryKeySelective(KillGoods record);

    int updateByPrimaryKey(KillGoods record);

    int reduceStock(Long id);
}